package org.jeecg.modules.seq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-09
 */
@TableName("sequence")
public class Sequence implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "seq_name", type = IdType.AUTO)
    private String seqName;

    @TableField("current_val")
    private Integer currentVal;

    @TableField("increment_val")
    private Integer incrementVal;


    public String getSeqName() {
        return seqName;
    }

    public void setSeqName(String seqName) {
        this.seqName = seqName;
    }

    public Integer getCurrentVal() {
        return currentVal;
    }

    public void setCurrentVal(Integer currentVal) {
        this.currentVal = currentVal;
    }

    public Integer getIncrementVal() {
        return incrementVal;
    }

    public void setIncrementVal(Integer incrementVal) {
        this.incrementVal = incrementVal;
    }

    @Override
    public String toString() {
        return "Sequence{" +
        "seqName=" + seqName +
        ", currentVal=" + currentVal +
        ", incrementVal=" + incrementVal +
        "}";
    }
}
